﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TraCompany.aspx.cs" Inherits="Supervise_TraCompany" %>

<%@ Register Src="../System/DbPageFlip.ascx" TagName="DbPageFlip" TagPrefix="uc1" %>


<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
        <link href="../styles/css.css" rel="stylesheet" type="text/css">
    <script language="vbscript" src="../Common/yz.vbs"></script>

        <script language="javascript" type="text/javascript">
    function SelelctCompany(CompanyID,CompanyName,Type)
    {
    
		    var obj=new Object;
		    obj.type=Type;
		    obj.companyid = CompanyID;
		    obj.companyName = CompanyName;
		    //window.alert(obj.companyid);
    	    self.opener.confirmvalue(obj);
		    window.close();
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
            <br>
        <br>
    <table  id="tabData" width="98%" border="0" align="center" cellpadding="2" cellspacing="1">
                <tr>
                    <td align="right" style="height: 26px">
                        企业名称：</td>
                    <td style="height: 26px">
                        <asp:TextBox ID="txtAttorneyName" runat="server" CssClass="input_text" InvertedComma="企业名称"></asp:TextBox>
                    </td>
                                        <td align="right" style="height: 26px">
                        企业编码：</td>
                    <td style="height: 26px">
                        <asp:TextBox ID="txtUserCode" runat="server" CssClass="input_text" InvertedComma="企业编码"></asp:TextBox>
                        <asp:Button ID="Button5" runat="server" OnClick="Button5_Click" Text=""  CssClass="button_Query" OnClientClick="javascript:return CheckForm();"/>
                    </td>

                </tr>
            </table>
            <asp:DataList ID="DlAttorney" runat="server" Width="98%" CssClass='table_table' HeaderStyle-CssClass='table_title'>
         <ItemStyle CssClass="table_td" />
        <AlternatingItemStyle CssClass="table_td2" />
               <HeaderTemplate>
                    <table width="98%">
                        <tr>
                            <td align="center" width="35%">
                                企业名称</td>
                            <td align="center" width="30%">
                                企业编码</td>
                            <td align="center" width="32%">
                                选 择</td>
                        </tr>
                    </table>
                </HeaderTemplate>
                <ItemTemplate>
                    <table width="98%">
                        <tr>
                            <td width="35%" align="center">
                                <%# DataBinder.Eval(Container.DataItem, "CompanyName")%>
                            </td>
                            <td width="30%" align="center">
                                <%# DataBinder.Eval(Container.DataItem, "UserCode")%>
                            </td>
                            <td width="32%" align="center">
                                <a href="javascript:SelelctCompany('<%# DataBinder.Eval(Container.DataItem, "AccountID")%>','<%# DataBinder.Eval(Container.DataItem,"companyName")%> ','<%= Request.QueryString["Type"] %>')">
                                    选择企业 </a>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        <uc1:DbPageFlip ID="DbPageFlip1" runat="server" />
    </div>
    </form>
</body>
</html>
